
{if empty($data)}
暂无数据
{else}
{foreach $data as $val}
<div style="border: 1px solid #000;border-radius: 10px;margin: 0 50px 20px 0;" class="layui-inline">
    <form action="">
        <input type="hidden" value="1" name="is_update">
        <input type="hidden" value="2" name="type">
        <img style="width: 70px;height: 70px" src="{$val.imagePath}" alt="" class="layui-form-mid">
    <div class="layui-inline">
        <label class="layui-form-label">道具ID</label>
        <div class="layui-input-inline">
            <input readonly type="text" name="equipId" class="layui-input" value="{$val.equipId}">

        </div>
    </div>
    <br/>
    <div class="layui-inline" style="margin-top: 20px;">
        <label class="layui-form-label">道具名称</label>
        <div class="layui-input-inline">
            <input  name="name"  class="layui-input" value="{$val.name}">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-form-item">
            <button type="button"class=" action-update-image update-image_{$val.equipId} layui-btn layui-btn-xs layui-btn-normal">更换图标</button>
            <input type="hidden" name="imagePath" value="{$val.imagePath}">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">效果</label>
            <div class="layui-input-inline">
                <input  name="effect"  class="layui-input" value="{$val.effect}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">关键词</label>
            <div class="layui-input-inline">
                <input  name="keywords"  class="layui-input" value="{$val.keywords}">
            </div>
        </div>
    </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">合成配方</label>
                <div class="layui-input-inline">
                        <span class="formula-list">

                        </span>
                    <button  type="button" class="layui-btn layui-btn-sm select-formula">
                        <i class="layui-icon"></i>
                    </button>
                    <input type="hidden" name="formula" value="{$val.formula}" class="layui-input">

                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">TFTID</label>
                <div class="layui-input-inline">
                    <input type="number" name="TFTID"  class="layui-input" value="{$val.TFTID}">
                </div>
            </div>

        </div>
<!--        <div class="layui-form-item">-->
<!--            <div class="layui-inline">-->
<!--                <label class="layui-form-label">适用英雄</label>-->
<!--                <div class="layui-input-inline">-->
<!--                        <span class="hero-list">-->

<!--                        </span>-->
<!--                    <button class="select-hero" type="button" class="layui-btn layui-btn-sm">-->
<!--                        <i class="layui-icon"></i>-->
<!--                    </button>-->
<!--                    <input type="hidden" name="heroIds" value="{$val.heroIds}" class="layui-input">-->

<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--        <button type="button" class="action-to-update layui-btn layui-btn-normal" style="margin-left: 110px;">编辑</button>-->
        <button type="button" class="action-to-submit layui-btn layui-btn-danger" style="margin-left: 110px; /*display: none*/">保存</button>
        <button type="button" class="action-to-delete layui-btn layui-btn-normal" style="margin-left: 10px;">删除</button>
    </form>
</div>
{/foreach}
{/if}